Oa.controller('OaCtrl',function($rootScope,$scope,$location,$http,$stateParams){
	$scope.TableTitle = "首页";
	
	$scope.$on('$stateChangeSuccess', function(){
		if($location.path() === "/mainOa"){
			$scope.TableTitle = "首页";
		}else if($location.path() === "/meeting"){
			$scope.TableTitle = "会议管理";
		}else if($location.path() === "/suggestionbox"){
			$scope.TableTitle = "意见箱";
		}else if($location.path() === "/teamactivity"){
			$scope.TableTitle = "团建活动";
		}else if($location.path() === "/essayWrite"){
			$scope.TableTitle = "团建活动-编写文章";
		}else if($location.path() === "/fileAll"){
			$scope.TableTitle = "文件管理-全部";
		}else if($location.path() === "/fileDoc"){
			$scope.TableTitle = "文件管理-文档";
		}else if($location.path() === "/fileJpg"){
			$scope.TableTitle = "文件管理-图片";
		}else if($location.path() === "/fileMp4"){
			$scope.TableTitle = "文件管理-视频";
		}
	});
});
